public static String clean(EvaluationContext ctx, Object text) {
        return Conversions.toString(text, ctx).replaceAll("\\p{C}", "");
    }
public static String clean ( EvaluationContext ctx , Object text ) { return Conversions . toString ( text , ctx ) . replaceAll ( "\\p{C}" , "" ) ; }
Removes all non-printable characters from a text string