Section 14. Whoever expectorates or spits upon any public sidewalk, or upon any place used exclusively or principally by pedestrians, or, except in receptacles provided for the purpose, in or upon any part of any city or town hall, any court house or court room, any public library or museum, any church or theatre, any lecture or music hall, any mill or factory, any hall of any tenement building occupied by five or more families, any school building, any ferry boat or steamboat, any railroad car or elevated railroad car, except a smoking car, any street railway car, any railroad or railway station or waiting room, or on any track, platform or sidewalk connected therewith, and included within the limits thereof, shall be punished by a fine of not more than twenty dollars.