no longer calls google api when string is invalid