Added unit test + updated replace to use regex (instead of string match) …
Auditors: @cezaraugusto Test Plan: run `npm run unittest -- --grep="tabContent components"`