change to substr and few css style