Is
text.startswith(\'a\')
better than
text[0]==\'a\'
?
Knowing text is not empty and we a
text[0]=='a' is good considering performance. Also you need to add validation when you use this.