def METHOD_NAME(self, line: str) -> tuple[str, str]:
    """Gets corners from a line."""
    mode_char = self._find_mode_char(line)
    left = line[: line.index(mode_char)]
    right = line[real_length(line) - (line[::-1].index(mode_char)) :]
    return left, right