Remove Extra Spaces - Trim Whitespace

Trim leading/trailing whitespaces from lines.Remove extra spaces.Remove all spaces.