added check for file already wrapped

I've added a quick check to make sure the string hasn't already been wrapped.