> I'm a little surprised that substr does so badly on the single starting quote, > but there you have it. I'm actually a bit surprised myself. Just goes to show that you should always benchmark your optimisations :) Alfie