fix redundant spaces and cs