This is how you write a strong female character.
And a strong character (of whatever gender) can nevertheless have doubts and a few weaknesses -- otherwise they're not believably human.