substring scorer