Fixed not fetching the first element from Regex Array