fix trail spaces