Made algorithm improvements and changed it so that it ignores capital
letters.
Change-Id: I72bb6bbcea774ed0fb27769869cfc00fd954e71f
Signed-off-by: ldimitrova <liliya.dimitrova90@gmail.com>