The upper() method does not modify the original string; it returns a new string with all characters converted to uppercase. If you want to modify the original string in-place, you need to reassign the result to the original variable.