updated code tag code to remove extra spaces