Text this: A functional equation characterizing cubic polynomials and its stability