fixed removeBlank function