Add modality code for observationr request
Clean string utlities