If I have a string like:
This.is.a.great.place.too.work.
or:
This/is/a/great/place/too/work/
than my prog
Of course you can use the StringTokenizer class to split the String with '.' or '/', and check if the last word is "work".