# Title case a sentence without split

**URL:** <https://forum.freecodecamp.org/t/title-case-a-sentence-without-split/147477>\
**Category:** General\
**Created:** [September 12, 2017, 7:13am UTC](https://forum.freecodecamp.org/t/title-case-a-sentence-without-split/147477 "2017-09-12T07:13:24Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![ppc](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ppc/32/63349_2.png) [@ppc](https://forum.freecodecamp.org/u/ppc)\
**Post date:** [September 12, 2017, 12:09pm UTC](https://forum.freecodecamp.org/t/title-case-a-sentence-without-split/147477/12 "2017-09-12T12:09:10Z")

</div>

without giving the solution I’ll sugggest you use a general problem-solving approach like what I outline here

> [@Trouble With Algorithms](https://forum.freecodecamp.org/t/trouble-with-algorithms/144629/3):
>
> here’s what I’d do 0 . relax - grab a coffee and snack - keep munching for the next 8 steps 1 . simply read the problem statement and instructions once - no need to completely understand anything 2 . work through any provided examples in your head once 3 . look at the test cases in order 4 . carefully examine the inputs of a test case - how many inputs are there - what is the type of each input - what is the meaning of each input 5 . carefully examine the output and result of a test case -…

so I’d write the first test case on paper

```auto
input: I'm a little tea pot
target: I'm A Little Tea Pot

```

try to describe in everyday language - without using programming terms like variables, arrays, loops, functions etc - how to get the target from the input

since you don’t want to use `split` the goal is to come up with a solution that does not split the input string into an array - or in everyday language avoids an intermediate step of rewriting the sentence into a sequence of separated words

if you struggle to understand the problem or come up with a solution try to break up the problem into smaller problems that are more manageable

how are problems broken up? what does a smaller problem mean? there can be many answers in general

a problem can be made smaller in size - e.g. consider an array of 10 items or 1 item instead of an array of 1000 items

a problem can be made smaller in scope - e.g. solve for just English or just Latin languages instead of all languages of the world

a problem can be broken up into multiple sub-problems - the solution to a sub-problem becomes a step in the solution of the original problem

---

_[View the full topic](https://forum.freecodecamp.org/t/title-case-a-sentence-without-split/147477)._
