fixed spaces function