Function convertStringToByteArray

Converts a string into byte array Inverse function convertByteArrayToString