DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
andreasjakof profile image
Andreas Jakof

But what if the input would be "aaajldflbbb"?

When using Trim(char[]), all appearances of the characters given to the method at the beginning and at the end, will be removed, leaving "jldfl".

Removes all leading and trailing occurrences of a set of characters specified in an array from the current String object.