trim code snippet + removed hard coded language