Added title preprocessing

Fixes #3380

@aaronschachter 
Not really a biggie.. although you could do the check for title here too by adding it in here (since its basically doing what your checking for with the `empty` / setting the variable