ignore trailing whitespaces in rhs mapping