A Modified Method and Its Implementation of Constructing Symmetries and Symmetry Reductions for Nonlinear Partial Differential Equations