add strip extension to hg