Researchers hope the technique could offer a more environmentally friendly approach to cleaning up messy clothing.