Fixed a method in StringUtilities that wouldn't work properly in most cases.