def remove_comments(string: str):
    """

    :param string: Must be a string of lines
    :return: A string representing the lines without comments (c or $)
    """
    return ' '.join([line.split('$')[0].strip() for line in string.splitlines() if line[0].lower() != 'c'])