Use .find() to find the spaces. If you find 2 spaces with 4 characters between them, use .replace() to replace the 4 characters.
And remember, the end of the sentence may not end in a space, but it may end in a 4-letter word.
Last edited by WaltP; Feb 13th, 2008 at 7:46 pm.
Reputation Points: 3278
Solved Threads: 892
Posting Sage
Offline 7,718 posts
since May 2006