main: add genClusterString func and its test