Stripped whitespace from either side of a Text object so trailing spaces are removed.