String fixes

Some fixes for the string methods.