Implementing system function RTrim.