library to cleanup and search decorated strings