Check If String Ends With Javascript Which Of These Is Not A Valid