Fixed ArrayIndexOutOfBoundsException issue at Parsing.java:109 and added corresponding unit test method