Tidied up char filter to remove redundant val in case class