moved methods to Bytes from Str