Use cmp instead of <=> for a string value