Add ignoreCase, literal and whole word options for replace.
Fix count 0.