fixing regexp spaces