added padding feature for short messages