Fixed bug with str.upper()