inputElementsString more flexible