cleaning object and string properties