replace strings use of bytestring with text