String classification beginner question
That sounds like k nearest neighbor clustering because a large portion of the string is similar. This answer to a similar question from 2014 has code you could try in Python. 

https://stats.stackexchange.com/a/158090