avoid converting String to byte array and back