Added checkName()