Thanks for the tip, I've never used RegEx in Javascript but I'll look into it tomorrow or during the weekend.