The stability of local strong solutions for a shallow water equation