[lexer] Move the string utils functions into a dedicated file.
Add an entry to the tests list.