Raising Exception on a line with worng length