added full attribute-searching functionality (use first word for multi-word attributes)