fix cassandra trim