Optimize cellname comparison

patch by benedict; reviewed by slebresne for CASSANDRA-6934