replace url and mention, modify token pattern