On Aug 9, 6:28 am, Tomislav Kralj <rex14012... / yahoo.com> wrote:
> A part of my program is to compare two strings and as a result I have to
> get a number (range:0-1) which represents a similarity beetwen those two
> strings.

You might want to google for string "correlation" algorithms.
(Depending on what sort of similarity you want.)