I am aware of String.strip/2
, but I cannot figure out its usage for removing whitespaces.
String.strip "_some_", ?_ #=> "some"
If the string had whitespaces instead of _, how does one strip them? Also, it would be great if someone can explain what ? means here.