Added truncate setting. 

Truncate to the givin length instead of giving old value back.