Cleans the cleanParams() function.