strlen function is added and corrected the strcmp