trimSpace


Description:

public static string trimSpace (string str)

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

Example:

    assert (Strings.trimSpace ("  hello  ") == "hello");

Parameters:

str

string to be trimmed

Returns:

string after trimming. If str is null, returns empty string.