Should I have been surprised that I am allowed to index a hard coded string?
Hard coded or otherwise, a string is an array of characters, indexing an array is completely normal.
It's just not obvious that the string is an array when it is hard coded. For that reason, it's reasonable to be surprised but, it's completely logical.