Improve performance of func String