fixing string/var concatenation for attribute values