Fix access level of censor method
Re-arrange logics
Rename parameter
Add test cases