Added shifts in hasSpaceBefore().

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>