removing comment and spaces