Improved Attribute and StringUtil.