Porting methods over as functions to use the native string type