I used the internal function text_pattern_lt and it is working fine!Thanks for helping.
cheersSuresh