invalidAttributeSyntax error when an empty string is added