I guess, since you are constructing this string, strictly speaking, couldn't you check for equality?