Fixes: #2368 Only replacing keyword at beginning of new lines now.