[BUGFIX] Fix for ProcessTitle() and ReplaceLink()

- mightBeLoc must be migtBeLcl in ProcessTitle()
- fix for list comprehensive variable d --> s

Change-Id: I98f0bcbaff8c48854379a672a7ddc752b133dad0