Added exception logging in try-catch + no string indices in array