add nmap to remove trailing whitespace