Fixed search for attribute type in string.