These new line characters are the reason you have to replace them when reading the properties file, remove them and probably pass them to the method via a Properties instance, worst case as a map