import re


def remove_whitespaces(text: str) -> str:
    """
    Remove all whitespaces (space, tab, new line) in ``text``.

    Args:
        text (str): Text with whitespaces.

    Returns:
        str: Text without whitespaces.
    """
    return re.sub(r"\s+", "", text, flags=re.UNICODE)