removing redundant space