Added right biased string shortening

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added hash to record name if key is also id in scaffolds

Signed-off-by: Tom Wright <tom@inflatablecookie.com>