Revert "invert method for text type"

This reverts commit 497ed79edf65113ff54c8eee6a72fa61d753591f.