remove redundant words after option '-p' introduced