adds semordnilap checking functionality