In my blog app, a user can enter any text as a title for their entry and then I generate a URL based on the text.
I validate their title to make sure it only co
String s = "Lorem 3 ipsum dolor sit amet" s = s.replaceAll(" ","-");