I have been working on this for 2 days now. I have a form with a text box that allows 180 characters, if a user types in something with no spaces it wrecks my site since there is no space for the text to wrap in the table cell when it displays. I'm trying to come up with a regular expression that checks for spaces in the string, and if there are no spaces, to add a space after 50 characters this way the text will wrap properly. All my searches have lead me to trim() but I'm not trying to remove space. anyone have any ideas?