JavaScript (V8), 57 50 bytes
a='uffalo';b='B'+a+' b'+a;c='b'+a;print(b,b,c,c,b)
You have to run these at Try it online!
because running it in a browser console will try to print this webpage
57 bytes:
a='uffalo ';b='B'+a+'b'+a;c='b'+a;print(b+b+c+c+b.trim())
47 bytes but Try it online!
doesn't understand String.replaceAll
and it outputs a trailing space:
print('B'+('bBbbbBb'.replaceAll('','uffalo ')))
46 bytes but it outputs a trailing space (thanks to @lm42):
print('B'+('bBbbbBb'.replace(/|/g,'uffalo ')))
This is my first golf.