Refactor out string util