remove multiple adjacent white space characters in a string - Maple Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Names and Strings : StringTools Package : WhiteSpace Utilities : StringTools/Squeeze

StringTools[Squeeze] - remove multiple adjacent white space characters in a string

StringTools[DeleteSpace] - remove all white space characters in a string

Calling Sequence






Maple string



The Squeeze(s) function removes extra white space from string s. As a result, all consecutive sequences of white space characters are replaced with a single space character.


The DeleteSpace(s) function removes all white space from the string s.


This function is part of the StringTools package, and so it can be used in the form Squeeze(..) only after executing the command with(StringTools). However, it can always be accessed through the long form of the command by using the form StringTools[Squeeze](..).



Squeeze This is a test.

This is a test.


DeleteSpace This is a test.



See Also

string, StringTools, StringTools[Trim]

Download Help Document

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam