convert fieldname and assert length