Convert string to bytes before computing hmac signature and remove print statement