fn mask_if_password(is_password: bool, text: &str) -> String