def camelcase(text):
    """Convert text to camel case

    Notes:
        The algorithm sets the first letter of each word to uppercase.
        Existing uppercase letters are left unchanged.
        Words are split on whitespace.

    Args:
        text: string, text to convert

    Returns:
        string, converted text.
    """
    if text is None:
        return
    if not text:
        return text
    words = [x[0].upper() + x[1:] for x in text.split() if x]
    return ''.join(words)