limit the replacing of spec|app with app|spec to 1