This function returns a string with whitespace stripped from the beginning and end of str...
Optionally, the stripped characters can also be specified using the character_mask parameter. Simply list all characters that you want to be stripped. With .. you can specify a range of characters.