clean up condition text