alignment and whitespaces removed
helper for trunacate