squeeze

Return string where sequences of a character in s[] from pattern[] are replaced with a single instance of that character. If pattern is null, it defaults to all characters.

S
squeeze
(
S
)
(
S s
,
in S pattern = null
)

Meta