Somehow the regexp-replace part is not working. Regular replace is okay.
Alx-x toggle-case-fold-search would fix the case sensitivity.
Alx-x toggle-case-fold-search