fix function, removing whitespaces