For example,
?- portray_text(true). ?- split("one,two,three", 0',, Parts). Parts = ["one", "two", "three"]. ?- split(Codes, 0',, ["alpha", "beta"]). Codes = "alpha,beta".