More debug.

Escaped periods in regexp, and actually replaced content string.