figured out how to access indexed char in a string pointer