This whole batch of changes in this method is so that we don't use the keyword "str" as a variable.