Fixed  'no method 'toUpperCase' error