code samples for string character