AMBARI-6479. Add Services can cause service start failure due to not trimming extra spaces in log4j property configs. (yusaku)