Fix string library functions