Tutorial Webpage for

Lecture Cloud- and Web-Technologies



Please use user and password as given in the lecture! Please copy the editor's content, as it will be lost due to reloading of the page for the purpose of login.



Kotlin - Extension Functions

Develop an extension function to check whether or not a string is a palindrome. A palindrome is a string, which reads the same backward as forward.

A first function should just check simple palindromes like "madam" or "racecar".

A second function should check sentence-length palindromes, where punctuation, lower/uppercase and word dividers do not matter. Examples include "A man, a plan, a canal, Panama!", "Was it a car or a cat I saw?" and "No 'x' in Nixon".


Please use the following editor for your exercise. You can run the content of the editor by clicking on the tab 'Run'...

Output of Editor Content

The result of running the editor content is as follows:

Output of the Solution

The output of the solution is as follows:


Please have a look at the solution only after you have finished working on your own solution. Otherwise the learn effect is much less.