I think StringUtil is actually a bit faster: https://gist.github.com/jkeys089/8719d9dbe94dacce04cd