fix trailing spaces error