Trim whitespace before trying to parse