A simple and non-complete solution for textSub