close, but not pass (doing int cases for msg replace arg