Deal with converting replacemime to boolean here.