fix whitespace and length