Repairing an validation error of the 'name' string in method createAttribute