Strips whitespace from before and after necessary fields