You have probably deleted one extra character. Maybe a ‘<‘.
You should have exactly deleted this part
.’ ‘.sprintf( __( ‘Powered by %s.’, ‘spacious’ ), $wp_link ).’ ‘.sprintf( __( ‘Theme: %1$s by %2$s.’, ‘spacious’ ), ‘Spacious’, $tg_link )
starting with ‘.’ ending with ‘)’