def toupper(s):
    """
    string to uppercase
    only lowercase letters are modified
    """
    _s = ''
    for c in s:
        if ord(c) >= 97 and ord(c) <= 122:
            _s += chr(ord(c) - 32)
        else:
            _s += c
    return _s