Added a String utility method, and deprecated another.