Changed the string conversion approach.