boolean (final Object valueInXml, final Object valueInControl) { return valueInXml instanceof String && valueInControl instanceof String && ((String)valueInXml).trim().equals(((String)valueInControl).trim()); }