Hi Roopa, I am not sure what you are having problems with but the first three indexOf method are looking for the empty string character. The indexOf method will never fail to find a match for an empty string. It will always be the first index of any string! The last indexOf method call is looking for a capital J which is found in the first index position. Therefore, the output is four zeroes with a single space between them. Regards, Manfred.