[5.0] Foundation : Factorize replaceIn in AppNameCommand