added gsub for titles with a space in between words