here's something: sdk/extras/stringTools.ec that works rather nicely: char * s = SingleFuncCharsCopy(" my string ", isspace, both, ' '); also: char * s = SingleCharsCopy(" my string ", " \t\n\r!@#$%^&*()-=+{}[]|", both, ' '); list of new functions: void SingleChars(...