Arduino String Length Variable Frequency