refactor text module into TextHelper class