`gsub!` can return nil, perform `upcase!` on different line.

`gsub!` can return nil, perform `upcase!` on different line.