function str = toUpper(str)
% Post: Convert string so all letters are upper case
% Pre: Input is a string
% This function is not really necessary since upper() 
% does the same thing

diff = 'A' - 'a';
for k = 1:length(str)   % Check each letter
    if 'a' <= str(k) && str(k) <= 'z'
        str(k) = char(str(k) + diff);
    end
end
