Added mapping for stripping trailing whitespaces adn another for sending next closing bracket to next line.