Make ending chars optional.