Replaces deprecated StringUtil methods