added debug log for validateString