added strip to family code
added downcase to before save family code