Use strict instead of type-converting comparison

This is just implementing a best practice and not solving any currently known problem.
Perhaps .match instead of .replace should be used here.