search and replace preword from author

This code is my answer:

                    <a href="<?php echo get_author_posts_url( get_the_author_meta('ID'), get_the_author_meta( 'user_nicename' ) ); ?>" class="m-article-author">
                        <?php
                        $author_bio_avatar_size = apply_filters( 'tierisch_wohnen_author_bio_avatar_size', 49 );
                        echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
                        ?>


                    <?php 
                    
                    if (get_the_author_meta('display_name') === 'xxx Team') {
                        echo"The";
                    }
                    else {
                        echo"From";
                    }
                    ?>

                    
                    <span class="m-article-author-name"><?php the_author(); ?></span>
                    </a>