loop through the individual input chars, hopefully should fix multiline paste