React Js Array Get Last Element Of String