This is the expected behavior. Strip will strip out of the string all the characters that you provide. You provided ., g, i, and t. All those characters got stripped out in both examples.
This is the expected behavior. Strip will strip out of the string all the characters that you provide. You provided ., g, i, and t. All those characters got stripped out in both examples.