New string functions and logging