change return type of componentsOfString to ccarray