Text this: Approximate analytical solution for solving nonlinear Schrodinger equation