move helpers to textutils gem