You are given a string s.
Your task is to determine if the given string s is a palindrome (a sequence of characters that reads the same forward and backward), returning true if it is and false otherwise.
You may assume that:
s will be composed solely of lowercase English letters or spaces."taco cat"
True
'taco cat' reads the same forwards and backwards when ignoring spaces.
"hello world"
False
'hello world' does not read the same forwards and backwards.
"a"
True
A single character string is a palindrome.
"taco cat"
True