Bash Split First Occurrence Leetcode Javascript Questions