Misc string-related fixes and corrections