remove dots at the end of statements and 'void' keyword