Made a few minor improovements: changesign key and string parsing