How do I convert a string to a char array? I am doing this so I can edit the string received from an sql query so I can remove unnecessary characters.