trimming whitespace characters.