Is there any algorithm to compare two strings and return their comparison in percentage

I want to compare two strings and return their result in percentage. Is there any algorithm in Robin to fix it.

I suppose you are referring to the Levenshtein distance between two strings. There is no module available for this but it should be possible to create a function to achieve this.