remove trailing , in require