add 'cs' map to remove spaces at the end.