I am coding as a hobby and trying my best to make it DRY as possible.
I tried making this function that just simply cleans a string or a value of input by a parameter