attach each person with their state list
X compare toggled state with state list while adding the letter p to the string