Added macro to remove trailing spaces.