Define strToInlines in terms of builder function.