New transformations and new approach to find exact solutions to nonlinear equations