How to clear of contents of string in Arduino?
In C and C++ a null terminated array of characters is a string (although not a String). Many routines for reading input terminate the result with a null as does an assignment like"

char foo[] = "This is a string.";


All you would need to do to "clear" this string is to assign a null to the first character. For example:

foo[0] = '\0';