added stringparser class and methods to count the Nis in the strings