trimSpace


Description:

public static string trimSpace (string str)

Remove whitespace and tabs at the beginning and end of the string.

Parameters:

str

string to be trimmed

Returns:

string after trimming. If str is null, trim() returns empty string.