string upcase (string & str)
{
  string newStr = str; 
  int pos ;
  for (pos=0; pos < str.length(); pos++)
  {
    if ( (str[pos] >= 'a') && (str[pos] <= 'z') )
       newStr[pos] = str[pos] - 'a' + 'A' ;
  }
  return newStr ;
}