Removes whitespace characters, including null, or the specified characters from the beginning and end of a string.