Whitespace removal and case reordering