def first_word(text):
    """
        returns the first word in a given text.
    """
    word = ''
    for token in text.strip():
        if word and token in ' ,.':
            break
        elif token not in ' ,.':
            word += token

    return word