Text this: Stability Analysis of Optimal Trajectory for Nonlinear Optimal Control Problems