regex checks for spaces