Clean up trailing and leading whitespace