in reply to Re^2: need help in extending the code
in thread need help in extending the code

In that i want the comparison to be case-sensitive which means all words should be compared without case-sensitivesness..

Say that out loud and see if it makes sense to you -- in the same sentence you use "case-sensitive" to mean both case-sensitive and case-insensitive

So what is your goal?