Regex Check For Empty String In Javascript