trim trailing text method added - not called