Remove starting and trailing white spaces before parsing.