tiny speedup regarding strings
use chars instead of split(//)