refactoring text splitting