Adding strip whitespace function.