New methods isAttribute & isValue
Refactored text method to run with less attributes when translating text