[fix] first remove spaces then not allowed chars