fix string method filters
modify StringIO usage in example template (using single line to not alter line numbers)