added shortenString function + minor things