This is the usual way in Kassandra to check if a string exists. You might not want to return all primary keys if all you care about is if the string exists or not, so you can do this:
SELECT count(*) FROM TABLE WHERE primary_keys = blah,
This will simply return 1 if the string exists, and 0 if it does not exist.