updated ruby code @visit.prisoner.last_name.sub!(/(\w)\w+$/, '\1.') to put surname initial and a full stop