Corrected syntax error
Added support for processing short topic names