Move method to text util and add tests

@bug W-2363721@
@rev goliver@
Merging origin/tbliss/master-pending-move-util-add-tests into master