replace size with bytesize in strscan to implement mri-like behaviour