trim linefeed from username