Fix URL formatting

  Remove trailing empty spaces from either side of the title.  Fix bug
  where numeric characters where being replaced.