can now take input and strip to length of input in buffer