Output a part of a String if the beginning of the String starts with a keyword