Improved find_first_char

- Fixed bugs
- Added TODOs