Updated to match latest changes to strings

StrBuf is now String, and several methods have been deprecated. This should sort them out.