import re


def valid_char(s: str) -> str:
    """Validates the input string characters.

    Args:
        s: Input string.

    Returns:
        (str): String 's' after validation.

    """

    return re.sub("[^a-zA-z0-9\s]", "", s)