def remove_comment(words):
    """remove comment string which starts with '#'."""
    ret = []
    for i in words:
        if len(i) <= 0:
            continue
        if i.startswith("#"):
            break
        if i.find("#") != -1:
            s = i.split("#")[0]
            ret.append(s)
            break
        ret.append(i)
    return ret