'hello.A at strain rate:=1000.235 per milli-second.1.3' Consider this string. I have to remove '.1.3' from last word of string and give whole string back. It should be generic. That is, from last word i have to remove every characters after '.' [including '.']