I would repeat the advice of several others. Do not try to treat this without a dr’s help. I, too, suffered in my adolescent years from these. I have a damaged kidney that functions very little but dr’s did not want to remove.
Urinary tract infections can go into your kidneys and then you will have serious problems. Also sometimes we think we have a UTI but it could be something else with similar symptoms.