def _startswith_and_remainder(string, prefix):
    """Returns if the string starts with the prefix and the string without the prefix."""
    if string.startswith(prefix):
        return True, string[len(prefix):]
    else:
        return False, ''