checkSpelling functiona added