Fix string_utils.h and add basic format_string

The order of the functions is important to gcc.