From 4475deeec64080684bf2c25fa207dafa44fb41ff Mon Sep 17 00:00:00 2001 From: Tiago Collot Date: Tue, 8 Nov 2022 11:30:09 +0000 Subject: [PATCH] docs(fifthandskip): instructions upgrade --- subjects/fifthandskip/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/subjects/fifthandskip/README.md b/subjects/fifthandskip/README.md index fe9fda85..756b64de 100644 --- a/subjects/fifthandskip/README.md +++ b/subjects/fifthandskip/README.md @@ -4,8 +4,9 @@ Write a function `FifthAndSkip()` that takes a `string` and returns another `string`. The function separates every five characters of the `string` with a space and removes the sixth one. -- If there is a space in the middle of a word it should ignore it and get the first character until getting to a length of 5. -- If the `string` is less than 5 characters returns "Invalid Output\n". +- If there are spaces in the middle of a word, ignore them and get the first character after the spaces until you reach a length of 5. +- If the `string` is less than 5 characters returns `Invalid Output` followed by a newline `\n`. +- If the `string` is empty return a newline `\n`. ### Expected function