Remove whitespace and tabs at the beginning and end of the string.
string to be trimmed
string after trimming. If str is null, trim() returns empty string.