added removeWhiteSpace function + test