
    """
    A helper function that retrieves the user's input 
    and does basic data sanitization (like removing beginning and trailing whitespace)

    Args:
        self: The class object
        lowercase: The flag that determines if the returned value is 
                    converted to all lowercase characters or not

    Returns:
        user_input: A string object from the user's input 
                    in the terminal interface of the program