Removed unnecessary code and take in use getBytes() instead of calling map twice