String method and performance improvements