get element attribute instead of element content
fix typo and convert string to lowercase