Added input string padding to account for dividing the data into streamlengths