How do I know if I'm using the string class

No, none of your examples use the String class.