Well, easy or hard is relative to your skill. There are many ways how to do this. If you know a lot about regular expressions you could give that a go. You could also try to use the String classes...