fixed fix for periods by turning it into more of a hack--only touches terminal periods