Added function for removing whitespace from expression