Strip trailing space and unify ident to spaces