Implemented changing width height in file

Had to add a "helper" string function