Refactored code style for hanging bracket characters