Name is not a reliable indicator of caste for all Indians. A large portion of South Indians don't have a surname - they just use their dad's first name or the name of their hometown. Even among North Indians who do have a caste-based surname, many ditch that in favor of something like "Kumar".