Changed preferred name to first name in detention templates