use regexp instead of fixed spaces