first draft of string checker