how old is she?does she eat only dry food?
how long are her stools like this?do you have cows milk?
You can give her cows milk as most cats are lactose intolerant and it will soften her stool. Discontinue all dry food and feed her canned only. You can add a half teaspoon of mineral oil three times a week. You can also give her a teasoon every day or plain yogurt to keep "good" bacteria in her system. If she is prone to UTI's, give her one drop of unsweetened (only) cranberry juice every day as that will make her bladder inhospitable to UTI bacteria.
Most dry stools are caused by inadequate fluid in the bowel so you want to get as much fluid as possible into your girl. That will prevent UTI's as well.
Please let me know how she is and if you still have questions. I will be happy to help in any way possible.