Automatically remove leading and trailing spaces.