remove extra space after getType before ==