Oreoorererereoo
Oreoorererereoo
Given an input string that is similar to the word "oreo", give an ascii representation of the cookie that is as wide as the input string (to ensure cookie stability).
Rules
- The input is a non-empty string with no whitespace containing any combination of the strings "o" and "re"
- The string "o" represents the solid cookie, while the string "re" represents the filling.
- The output must be a stacked cookie that is as wide as the input string.
- The cookie must overlap the filling by one character on each side
- The characters used for the output don't have to match the output below (█ and ░), they just have to be different for the two parts of the cookie
- The output should not include a line return at the end, just the cookie (and filling padding)
Examples
Input: oreo
Output:
████
░░
████
Input: o
Output:
█
Input: re
Output: (two spaces)
Input: rere
Output:
░░
░░
Input: oreoorererereoo
Output:
███████████████
░░░░░░░░░░░░░
███████████████
███████████████
░░░░░░░░░░░░░
░░░░░░░░░░░░░
░░░░░░░░░░░░░
░░░░░░░░░░░░░
███████████████
███████████████
Since this is code golf the shortest answer wins, good luck :)
code-golf string ascii-art
add a comment |
Oreoorererereoo
Given an input string that is similar to the word "oreo", give an ascii representation of the cookie that is as wide as the input string (to ensure cookie stability).
Rules
- The input is a non-empty string with no whitespace containing any combination of the strings "o" and "re"
- The string "o" represents the solid cookie, while the string "re" represents the filling.
- The output must be a stacked cookie that is as wide as the input string.
- The cookie must overlap the filling by one character on each side
- The characters used for the output don't have to match the output below (█ and ░), they just have to be different for the two parts of the cookie
- The output should not include a line return at the end, just the cookie (and filling padding)
Examples
Input: oreo
Output:
████
░░
████
Input: o
Output:
█
Input: re
Output: (two spaces)
Input: rere
Output:
░░
░░
Input: oreoorererereoo
Output:
███████████████
░░░░░░░░░░░░░
███████████████
███████████████
░░░░░░░░░░░░░
░░░░░░░░░░░░░
░░░░░░░░░░░░░
░░░░░░░░░░░░░
███████████████
███████████████
Since this is code golf the shortest answer wins, good luck :)
code-golf string ascii-art
is trailing whitespace mandatory?
– dzaima
59 mins ago
It is if the filling happens to be the last layer, yes the single whitespace is necessary. But no blank lines after the cookie!
– GammaGames
54 mins ago
1
Is it correct to assume you will not be given the empty string?
– fəˈnɛtɪk
39 mins ago
Yeah, the string will always have something in it.
– GammaGames
38 mins ago
Will the string only contain "re" and "o"?
– Embodiment of Ignorance
21 mins ago
add a comment |
Oreoorererereoo
Given an input string that is similar to the word "oreo", give an ascii representation of the cookie that is as wide as the input string (to ensure cookie stability).
Rules
- The input is a non-empty string with no whitespace containing any combination of the strings "o" and "re"
- The string "o" represents the solid cookie, while the string "re" represents the filling.
- The output must be a stacked cookie that is as wide as the input string.
- The cookie must overlap the filling by one character on each side
- The characters used for the output don't have to match the output below (█ and ░), they just have to be different for the two parts of the cookie
- The output should not include a line return at the end, just the cookie (and filling padding)
Examples
Input: oreo
Output:
████
░░
████
Input: o
Output:
█
Input: re
Output: (two spaces)
Input: rere
Output:
░░
░░
Input: oreoorererereoo
Output:
███████████████
░░░░░░░░░░░░░
███████████████
███████████████
░░░░░░░░░░░░░
░░░░░░░░░░░░░
░░░░░░░░░░░░░
░░░░░░░░░░░░░
███████████████
███████████████
Since this is code golf the shortest answer wins, good luck :)
code-golf string ascii-art
Oreoorererereoo
Given an input string that is similar to the word "oreo", give an ascii representation of the cookie that is as wide as the input string (to ensure cookie stability).
Rules
- The input is a non-empty string with no whitespace containing any combination of the strings "o" and "re"
- The string "o" represents the solid cookie, while the string "re" represents the filling.
- The output must be a stacked cookie that is as wide as the input string.
- The cookie must overlap the filling by one character on each side
- The characters used for the output don't have to match the output below (█ and ░), they just have to be different for the two parts of the cookie
- The output should not include a line return at the end, just the cookie (and filling padding)
Examples
Input: oreo
Output:
████
░░
████
Input: o
Output:
█
Input: re
Output: (two spaces)
Input: rere
Output:
░░
░░
Input: oreoorererereoo
Output:
███████████████
░░░░░░░░░░░░░
███████████████
███████████████
░░░░░░░░░░░░░
░░░░░░░░░░░░░
░░░░░░░░░░░░░
░░░░░░░░░░░░░
███████████████
███████████████
Since this is code golf the shortest answer wins, good luck :)
code-golf string ascii-art
code-golf string ascii-art
edited 37 mins ago
asked 1 hour ago
GammaGames
3209
3209
is trailing whitespace mandatory?
– dzaima
59 mins ago
It is if the filling happens to be the last layer, yes the single whitespace is necessary. But no blank lines after the cookie!
– GammaGames
54 mins ago
1
Is it correct to assume you will not be given the empty string?
– fəˈnɛtɪk
39 mins ago
Yeah, the string will always have something in it.
– GammaGames
38 mins ago
Will the string only contain "re" and "o"?
– Embodiment of Ignorance
21 mins ago
add a comment |
is trailing whitespace mandatory?
– dzaima
59 mins ago
It is if the filling happens to be the last layer, yes the single whitespace is necessary. But no blank lines after the cookie!
– GammaGames
54 mins ago
1
Is it correct to assume you will not be given the empty string?
– fəˈnɛtɪk
39 mins ago
Yeah, the string will always have something in it.
– GammaGames
38 mins ago
Will the string only contain "re" and "o"?
– Embodiment of Ignorance
21 mins ago
is trailing whitespace mandatory?
– dzaima
59 mins ago
is trailing whitespace mandatory?
– dzaima
59 mins ago
It is if the filling happens to be the last layer, yes the single whitespace is necessary. But no blank lines after the cookie!
– GammaGames
54 mins ago
It is if the filling happens to be the last layer, yes the single whitespace is necessary. But no blank lines after the cookie!
– GammaGames
54 mins ago
1
1
Is it correct to assume you will not be given the empty string?
– fəˈnɛtɪk
39 mins ago
Is it correct to assume you will not be given the empty string?
– fəˈnɛtɪk
39 mins ago
Yeah, the string will always have something in it.
– GammaGames
38 mins ago
Yeah, the string will always have something in it.
– GammaGames
38 mins ago
Will the string only contain "re" and "o"?
– Embodiment of Ignorance
21 mins ago
Will the string only contain "re" and "o"?
– Embodiment of Ignorance
21 mins ago
add a comment |
4 Answers
4
active
oldest
votes
Canvas, 19 bytes
{e≠?l¹o≡?=×]┤O× e}P
Try it here!
Canvas automatically trims some leading newlines (P
prints a newline before the text it's supposed to print) (and some trailing ones too), otherwise this would be way longer.
That's a handy feature, and cool language!
– GammaGames
52 mins ago
add a comment |
Retina, 74 bytes
I feel like I haven't posted an answer in a very long time. Well, here I am. Also, Retina has changed a lot, and I feel like I suck at it now.
.+
$0$.0
(d+)
*
e
[or]
$&¶
_$
+(/_/&`o¶
oo¶
_$
)/_/&`r¶
rr¶
¶$
m`^r
Try it online!
Whoa, what a crazy looking language. I like it!
– GammaGames
43 mins ago
doesn't include trailing whitespaces..
– dzaima
41 mins ago
add a comment |
JavaScript ES6, 103 bytes
Using replace 103 bytes:
x=>x.replace(/o/g,"-".repeat(s=x.length)+`
`).replace(/re/g," "+"|".repeat(s>1?s-2:0)+`
`).slice(0,-1)
Try it online!
Using split and map 116 bytes:
x=>x.split("re").map(y=>("-"[h='repeat'](r=x.length)+`
`)[h](y.length)).join(" "+"|"[h](r>1?r-2:0)+`
`).slice(0,-1)
Try it online!
JS, nice! You reminded me that I was going to add a rule about not having line returns at the end of the output, I've added it. Sorry about that!
– GammaGames
56 mins ago
2
just removing the final newline is 12 bytes
– fəˈnɛtɪk
50 mins ago
add a comment |
C# (Visual C# Interactive Compiler), 104 bytes
n=>n.Replace("o",new String('-',n.Length)+"n").Replace("re"," "+new String('|',n.Length-2)+"n").Trim()
Uses replace.
Try it online!
C# (Visual C# Interactive Compiler), 118 bytes
n=>n.Aggregate("",(d,c)=>d+(c<102?"":c<112?new String('-',n.Length)+"n":" "+new String('|',n.Length-2)+"n")).Trim();
Loops through the string
Try it online!
outputs a trailing newline, which is now not allowed. Horrible rule, I know, but that's how it is :/
– dzaima
53 mins ago
1
now it trims trailing spaces..
– dzaima
51 mins ago
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
});
});
}, "mathjax-editing");
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "200"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f178344%2foreoorererereoo%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Canvas, 19 bytes
{e≠?l¹o≡?=×]┤O× e}P
Try it here!
Canvas automatically trims some leading newlines (P
prints a newline before the text it's supposed to print) (and some trailing ones too), otherwise this would be way longer.
That's a handy feature, and cool language!
– GammaGames
52 mins ago
add a comment |
Canvas, 19 bytes
{e≠?l¹o≡?=×]┤O× e}P
Try it here!
Canvas automatically trims some leading newlines (P
prints a newline before the text it's supposed to print) (and some trailing ones too), otherwise this would be way longer.
That's a handy feature, and cool language!
– GammaGames
52 mins ago
add a comment |
Canvas, 19 bytes
{e≠?l¹o≡?=×]┤O× e}P
Try it here!
Canvas automatically trims some leading newlines (P
prints a newline before the text it's supposed to print) (and some trailing ones too), otherwise this would be way longer.
Canvas, 19 bytes
{e≠?l¹o≡?=×]┤O× e}P
Try it here!
Canvas automatically trims some leading newlines (P
prints a newline before the text it's supposed to print) (and some trailing ones too), otherwise this would be way longer.
edited 48 mins ago
answered 54 mins ago
dzaima
14.4k21754
14.4k21754
That's a handy feature, and cool language!
– GammaGames
52 mins ago
add a comment |
That's a handy feature, and cool language!
– GammaGames
52 mins ago
That's a handy feature, and cool language!
– GammaGames
52 mins ago
That's a handy feature, and cool language!
– GammaGames
52 mins ago
add a comment |
Retina, 74 bytes
I feel like I haven't posted an answer in a very long time. Well, here I am. Also, Retina has changed a lot, and I feel like I suck at it now.
.+
$0$.0
(d+)
*
e
[or]
$&¶
_$
+(/_/&`o¶
oo¶
_$
)/_/&`r¶
rr¶
¶$
m`^r
Try it online!
Whoa, what a crazy looking language. I like it!
– GammaGames
43 mins ago
doesn't include trailing whitespaces..
– dzaima
41 mins ago
add a comment |
Retina, 74 bytes
I feel like I haven't posted an answer in a very long time. Well, here I am. Also, Retina has changed a lot, and I feel like I suck at it now.
.+
$0$.0
(d+)
*
e
[or]
$&¶
_$
+(/_/&`o¶
oo¶
_$
)/_/&`r¶
rr¶
¶$
m`^r
Try it online!
Whoa, what a crazy looking language. I like it!
– GammaGames
43 mins ago
doesn't include trailing whitespaces..
– dzaima
41 mins ago
add a comment |
Retina, 74 bytes
I feel like I haven't posted an answer in a very long time. Well, here I am. Also, Retina has changed a lot, and I feel like I suck at it now.
.+
$0$.0
(d+)
*
e
[or]
$&¶
_$
+(/_/&`o¶
oo¶
_$
)/_/&`r¶
rr¶
¶$
m`^r
Try it online!
Retina, 74 bytes
I feel like I haven't posted an answer in a very long time. Well, here I am. Also, Retina has changed a lot, and I feel like I suck at it now.
.+
$0$.0
(d+)
*
e
[or]
$&¶
_$
+(/_/&`o¶
oo¶
_$
)/_/&`r¶
rr¶
¶$
m`^r
Try it online!
answered 46 mins ago
mbomb007
17.5k542118
17.5k542118
Whoa, what a crazy looking language. I like it!
– GammaGames
43 mins ago
doesn't include trailing whitespaces..
– dzaima
41 mins ago
add a comment |
Whoa, what a crazy looking language. I like it!
– GammaGames
43 mins ago
doesn't include trailing whitespaces..
– dzaima
41 mins ago
Whoa, what a crazy looking language. I like it!
– GammaGames
43 mins ago
Whoa, what a crazy looking language. I like it!
– GammaGames
43 mins ago
doesn't include trailing whitespaces..
– dzaima
41 mins ago
doesn't include trailing whitespaces..
– dzaima
41 mins ago
add a comment |
JavaScript ES6, 103 bytes
Using replace 103 bytes:
x=>x.replace(/o/g,"-".repeat(s=x.length)+`
`).replace(/re/g," "+"|".repeat(s>1?s-2:0)+`
`).slice(0,-1)
Try it online!
Using split and map 116 bytes:
x=>x.split("re").map(y=>("-"[h='repeat'](r=x.length)+`
`)[h](y.length)).join(" "+"|"[h](r>1?r-2:0)+`
`).slice(0,-1)
Try it online!
JS, nice! You reminded me that I was going to add a rule about not having line returns at the end of the output, I've added it. Sorry about that!
– GammaGames
56 mins ago
2
just removing the final newline is 12 bytes
– fəˈnɛtɪk
50 mins ago
add a comment |
JavaScript ES6, 103 bytes
Using replace 103 bytes:
x=>x.replace(/o/g,"-".repeat(s=x.length)+`
`).replace(/re/g," "+"|".repeat(s>1?s-2:0)+`
`).slice(0,-1)
Try it online!
Using split and map 116 bytes:
x=>x.split("re").map(y=>("-"[h='repeat'](r=x.length)+`
`)[h](y.length)).join(" "+"|"[h](r>1?r-2:0)+`
`).slice(0,-1)
Try it online!
JS, nice! You reminded me that I was going to add a rule about not having line returns at the end of the output, I've added it. Sorry about that!
– GammaGames
56 mins ago
2
just removing the final newline is 12 bytes
– fəˈnɛtɪk
50 mins ago
add a comment |
JavaScript ES6, 103 bytes
Using replace 103 bytes:
x=>x.replace(/o/g,"-".repeat(s=x.length)+`
`).replace(/re/g," "+"|".repeat(s>1?s-2:0)+`
`).slice(0,-1)
Try it online!
Using split and map 116 bytes:
x=>x.split("re").map(y=>("-"[h='repeat'](r=x.length)+`
`)[h](y.length)).join(" "+"|"[h](r>1?r-2:0)+`
`).slice(0,-1)
Try it online!
JavaScript ES6, 103 bytes
Using replace 103 bytes:
x=>x.replace(/o/g,"-".repeat(s=x.length)+`
`).replace(/re/g," "+"|".repeat(s>1?s-2:0)+`
`).slice(0,-1)
Try it online!
Using split and map 116 bytes:
x=>x.split("re").map(y=>("-"[h='repeat'](r=x.length)+`
`)[h](y.length)).join(" "+"|"[h](r>1?r-2:0)+`
`).slice(0,-1)
Try it online!
edited 46 mins ago
answered 1 hour ago
fəˈnɛtɪk
3,5631537
3,5631537
JS, nice! You reminded me that I was going to add a rule about not having line returns at the end of the output, I've added it. Sorry about that!
– GammaGames
56 mins ago
2
just removing the final newline is 12 bytes
– fəˈnɛtɪk
50 mins ago
add a comment |
JS, nice! You reminded me that I was going to add a rule about not having line returns at the end of the output, I've added it. Sorry about that!
– GammaGames
56 mins ago
2
just removing the final newline is 12 bytes
– fəˈnɛtɪk
50 mins ago
JS, nice! You reminded me that I was going to add a rule about not having line returns at the end of the output, I've added it. Sorry about that!
– GammaGames
56 mins ago
JS, nice! You reminded me that I was going to add a rule about not having line returns at the end of the output, I've added it. Sorry about that!
– GammaGames
56 mins ago
2
2
just removing the final newline is 12 bytes
– fəˈnɛtɪk
50 mins ago
just removing the final newline is 12 bytes
– fəˈnɛtɪk
50 mins ago
add a comment |
C# (Visual C# Interactive Compiler), 104 bytes
n=>n.Replace("o",new String('-',n.Length)+"n").Replace("re"," "+new String('|',n.Length-2)+"n").Trim()
Uses replace.
Try it online!
C# (Visual C# Interactive Compiler), 118 bytes
n=>n.Aggregate("",(d,c)=>d+(c<102?"":c<112?new String('-',n.Length)+"n":" "+new String('|',n.Length-2)+"n")).Trim();
Loops through the string
Try it online!
outputs a trailing newline, which is now not allowed. Horrible rule, I know, but that's how it is :/
– dzaima
53 mins ago
1
now it trims trailing spaces..
– dzaima
51 mins ago
add a comment |
C# (Visual C# Interactive Compiler), 104 bytes
n=>n.Replace("o",new String('-',n.Length)+"n").Replace("re"," "+new String('|',n.Length-2)+"n").Trim()
Uses replace.
Try it online!
C# (Visual C# Interactive Compiler), 118 bytes
n=>n.Aggregate("",(d,c)=>d+(c<102?"":c<112?new String('-',n.Length)+"n":" "+new String('|',n.Length-2)+"n")).Trim();
Loops through the string
Try it online!
outputs a trailing newline, which is now not allowed. Horrible rule, I know, but that's how it is :/
– dzaima
53 mins ago
1
now it trims trailing spaces..
– dzaima
51 mins ago
add a comment |
C# (Visual C# Interactive Compiler), 104 bytes
n=>n.Replace("o",new String('-',n.Length)+"n").Replace("re"," "+new String('|',n.Length-2)+"n").Trim()
Uses replace.
Try it online!
C# (Visual C# Interactive Compiler), 118 bytes
n=>n.Aggregate("",(d,c)=>d+(c<102?"":c<112?new String('-',n.Length)+"n":" "+new String('|',n.Length-2)+"n")).Trim();
Loops through the string
Try it online!
C# (Visual C# Interactive Compiler), 104 bytes
n=>n.Replace("o",new String('-',n.Length)+"n").Replace("re"," "+new String('|',n.Length-2)+"n").Trim()
Uses replace.
Try it online!
C# (Visual C# Interactive Compiler), 118 bytes
n=>n.Aggregate("",(d,c)=>d+(c<102?"":c<112?new String('-',n.Length)+"n":" "+new String('|',n.Length-2)+"n")).Trim();
Loops through the string
Try it online!
edited 22 mins ago
answered 53 mins ago
Embodiment of Ignorance
47014
47014
outputs a trailing newline, which is now not allowed. Horrible rule, I know, but that's how it is :/
– dzaima
53 mins ago
1
now it trims trailing spaces..
– dzaima
51 mins ago
add a comment |
outputs a trailing newline, which is now not allowed. Horrible rule, I know, but that's how it is :/
– dzaima
53 mins ago
1
now it trims trailing spaces..
– dzaima
51 mins ago
outputs a trailing newline, which is now not allowed. Horrible rule, I know, but that's how it is :/
– dzaima
53 mins ago
outputs a trailing newline, which is now not allowed. Horrible rule, I know, but that's how it is :/
– dzaima
53 mins ago
1
1
now it trims trailing spaces..
– dzaima
51 mins ago
now it trims trailing spaces..
– dzaima
51 mins ago
add a comment |
If this is an answer to a challenge…
…Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.
…Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
Explanations of your answer make it more interesting to read and are very much encouraged.…Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.
More generally…
…Please make sure to answer the question and provide sufficient detail.
…Avoid asking for help, clarification or responding to other answers (use comments instead).
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f178344%2foreoorererereoo%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
is trailing whitespace mandatory?
– dzaima
59 mins ago
It is if the filling happens to be the last layer, yes the single whitespace is necessary. But no blank lines after the cookie!
– GammaGames
54 mins ago
1
Is it correct to assume you will not be given the empty string?
– fəˈnɛtɪk
39 mins ago
Yeah, the string will always have something in it.
– GammaGames
38 mins ago
Will the string only contain "re" and "o"?
– Embodiment of Ignorance
21 mins ago