Code Cleanup

- Removed unused text.cpp isTokenEnd function.