bug fix (RTrim)