fixed the method for level string