remove ; and trailing space.