is has of text with spaces different from the one without ?

I mean , do hashing functions remove the spaces before running the hashing algo ?

#askNostr

#bitcoin

nostr:note136wt78ej3mf3r6u59duspt808eau3cy5xjae4amzqrlcgyrqjtuq78uszr