import re


def valid_string(input_string: str) -> bool:
    """
    Checks if the input string contains valid characters for fields
    and does not begin with whitespaces
    """
    regex = '[a-zA-Z0-9]'
    is_valid = True
    if not re.match(regex, input_string.strip()):
        is_valid = False
    return is_valid