Merged functionality of StringParser into ResourceUtil.